import { h } from "vue";

type Props = {
  text: string
}
export const HBth = function (props: Props, ctx: any) {
  return h('div', {
    id: 'h-btn',
    style: { color: 'white', width: '100px', height: '60px', borderRadius: '1opx', backgroundColor: 'blue', fontSize: '14px'},
    // innerHTML: props.text || '我是函数组件',
    onClick: () => {
      console.log(ctx);
      alert('HBth被点击了');
      ctx.emit('onMyClick', 99);
    }
  }, ctx.slots.default())
}